package testng;

import com.kpmg.datalake.web.RunApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.annotation.DirtiesContext.ClassMode;
import org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests;

/**
 * @author changpengye
 * 测试基类
 * 继承AbstractTestNGSpringContextTests不支持事务回滚
 */
@SpringBootTest(classes = { RunApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)  
@DirtiesContext(classMode = ClassMode.AFTER_CLASS)
public class BaseTestNGDemo extends AbstractTransactionalTestNGSpringContextTests {
	
	
}
